import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userId:'',
    userName:'',
    token:'',
    detailId:'',
    //示范平台状态
    ptState:'',
    jdState:'',
    rzState:'',
    shenbaoData:{
      tableData: [
        { id: '1', name: "1,兰州市中小企业公共服务示范平台申请推荐表", status: "待审核", moban: '下载附件', zhengming: '上传辅助证明文件',fileId:'1663584719612256258',type:'xls'},
        { id: '2', name: "2,兰州市中小企业公共服务示范平台主要从业人员情况表", status: "待审核",  moban: '下载附件', zhengming: '上传辅助证明文件', fileId:'1663585210454876161',type:'xls'},
        { id: '3', name: "3,兰州市中小企业公共服务示范平台服务设施设备清单", status: "待审核", moban: '下载附件', zhengming: '上传辅助证明文件' ,fileId:'1663585482585513985',type:'xls'},
        { id: '4', name: "4,申请报告提纲", status: "待审核",  moban: '下载附件', zhengming: '上传辅助证明文件',fileId:'1663585593210281986',type:'doc' },
        { id: '5', name: "5,服务中小企业名单及满意度评价表(测评企业数量不少于30家)", status: "待审核",  moban: '下载附件', zhengming: '上传辅助证明文件',fileId:'1663585643898445825',type:'xls'},
        { id: '6', name: "6,法人证书或营业执照副本(复印件)", status: "待审核",  moban: '下载附件', zhengming: '上传辅助证明文件',fileId:'1663584719612256258',type:'xls'},
        { id: '7', name: "7,上一年度审计报告及服务收支情况的专项审计报告、或上一年度包含服务收支情况的审计报告", status: "待审核",  moban: '下载附件', zhengming: '上传辅助证明文件' ,fileId:'1663584719612256258',type:'xls'},
        
      ],
      tableData2: [
        { id: '8', name: "8,开展相关服务的佐证材料(通知、照片、总结等)", status: "待审核",  moban: '下载附件', zhengming: '上传辅助证明文件' ,fileId:'1663584719612256258',type:'xls'},
        { id: '9', name: "9,国家和省市颁发的从业资格(资质)、许可证等佐证材料(复印件)", status: "待审核",  moban: '下载附件', zhengming: '上传辅助证明文件',fileId:'1663584719612256258',type:'xls' },
        { id: '10', name: "10,与服务能力相关的专利、商标、品牌、标准、软件著作权等佐证材料(复印件)", status: "待审核",  moban: '下载附件', zhengming: '上传辅助证明文件' ,fileId:'1663584719612256258',type:'xls'},
        { id: '11', name: "11,市(州)及以上政府主管部门授予的荣誉证书(证明)复印件、获得各级政府的扶持情况", status: "待审核",  moban: '下载附件', zhengming: '上传辅助证明文件' ,fileId:'1663584719612256258',type:'xls'},
        { id: '12', name: "12,示范平台申报单位须确保申报材料的真实性和完整性,填报申报材料真实性声明(加盖公章)", status: "待审核",  moban: '下载附件', zhengming: '上传辅助证明文件',fileId:'1663585829395734530' ,type:'xls'},
        { id: '13', name: "13,其他佐证材料", status: "待审核",  moban: '下载附件', zhengming: '上传辅助证明文件' ,fileId:'1663584719612256258',type:'xls'},
      ],
     
    }
  },
  mutations: {
    //存储用户id
    setuserId(state,userId){
      state.userId = userId
    },
     //存储用户名
    setuserName(state,name){
      state.userName = name
    },
    //存储token
    setToken(state, token) {
      state.token = token
    },
    //存储公告详情页id
    setDetailid(state, detailId) {
      state.detailId = detailId
    },
    //存储申报平台状态
 setptState(state, ptState) {
      state.ptState = ptState
    },
     //存储示范基地状态
 setjdtState(state, jdState) {
      state.jdState = jdState
    },
     //存储入驻平台状态
 setrzState(state, rzState) {
      state.rzState = rzState
    },
  },
  actions: {
   
  },
  getters: {
   
  },
  plugins: [
    createPersistedState({
      key: 'my-vuex-state',
      paths: ['userId', 'userName','detailId','ptState']
    })
  ]
})